package phoenix.web.locators.flirt.features;

import org.openqa.selenium.By;

import phoenix.web.locators.base.features.MenuLocatorsBase;

/**
 * Created by AlexGolovko on 13.11.2014.
 */
public class MenuLocators extends MenuLocatorsBase
{
	public MenuLocators()
	{
		// Blocks
		blockSiteLogo = By.xpath("//div[@id='site-nav']/a/span/img");
		btnUserAvatar = By.xpath("//div[@id='userNavPhoto']/div/img");
		blockUserMenu = By.xpath("//*[@class='b-user-nav']");

		// Main menu
		btnMySettings = By.xpath("//div[@id='userNav']//a[@href='/#account']");
		btnMyProfile = By.xpath("//div[@id='userNav']//a[@href='/#profile']");
		btnBlocked = By.xpath("//div[@id='userNav']//a[@href='/#blocked']");
		btnContactUs = By.xpath("//div[@id='userNav']//a[@href='/#site/contactUs']");
		btnLogout = By.xpath("//div[@id='userNav']//a[@href='/site/logout']");

		// Search menu
		btnSearchTopMenu = By.xpath("//a[@class='site-nav-item site-nav-search active']");
		btnSearchNear = By.xpath("//a[@data-item='near_you']");
		btnSearchOnline = By.xpath("//a[@data-item='online']");
		btnSearchRecently = By.xpath("//a[@data-item='new_members']");

		// Top Menu
		linkTopFeed = By.xpath("//a[@class='site-nav-item site-nav-newsfeed']");
		linkSMSChat = By.xpath("//a[@class='site-nav-item site-nav-smschat']");
		linkTopMessagedMe = By.xpath("//a[@class='site-nav-item site-nav-messenger']");
		linkTopSearch = By.xpath("//a[@class='site-nav-item site-nav-search']");

		// Drop down
		blockDropDownMenuFeed = By.xpath("//div[@data-activity='newsFeed']");

		// Sub menu
		btnOpenFeed = By.xpath("//div[@data-activity='newsFeed']//a[@class='view-more btn green']");
		btnSeeAll = By.xpath("//*[@id='site-nav']/ul/li[2]/div/*//a[contains(@class,'view')]");
	}
}
